package model

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UserId        int     `gorm:"type:varchar(11);not null;comment:用户Id"`
	OrderNum      string  `gorm:"type:varchar(100);not null;comment:订单号"`
	HotelId       int     `gorm:"type:varchar(11);not null;comment:酒店Id"`
	HotelTitle    string  `gorm:"type:varchar(100);not null;comment:酒店名称"`
	RoomType      string  `gorm:"type:varchar(20);not null;comment:酒店房型"`
	GuestsStaying string  `gorm:"type:varchar(20);not null;comment:入住人"`
	CheckInDate   string  `gorm:"type:varchar(100);not null;comment:入/离日期"`
	Price         float64 `gorm:"type:decimal(10,2);not null;comment:订单金额"`
	Status        int     `gorm:"type:int(10);not null;comment:订单状态"`
}
